package com.yaolonga.itfc.manager.core.exception;

import lombok.Getter;

/**
 * @Author: yaolong
 * @CreateTime: 2024-10-24  16:36
 * @Description: 指令执行异常
 * @Version: 1.0
 */
@Getter
public class CmdExecuteException extends RuntimeException {
    private final String command;
    private final String message;

    public CmdExecuteException(String command,  String message) {
        super(message);
        this.command = command;
        this.message = message;
    }
    public CmdExecuteException(String command, Throwable e) {
        super(e.getMessage(),e);
        this.command = command;
        this.message = e.getMessage();
    }

    public CmdExecuteException(String command, String message,Throwable e) {
        super(message,e);
        this.command = command;
        this.message = e.getMessage();
    }
}
